//
//  NSString+Trim.m
//  meets-ios
//
//  Created by Mark on 16/1/22.
//  Copyright © 2016年 meets. All rights reserved.
//

#import "NSString+Trim.h"

@implementation NSString (Trim)

- (NSString *)trim {
    return [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
}

- (NSString *)removeLinefeed {
    NSString *replace = [self stringByReplacingOccurrencesOfString:@"\n" withString:@""];
    return [replace trim];
}


@end
